package com.ewzj.bigdata.mvp.contract

import com.ewzj.bigdata.mvp.model.rspbean.*
import com.ewzj.bigdata.mvp.ui.adapter.HomePageAdapter
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
class HourseListContract{
    interface View : IView{
        /*区域选择项*/
         fun areaPopView(datas: SubFilterBean.DataEntity)
        /*价格*/
        fun pricePopView(datas: SubFilterBean.DataEntity)
        /*户型*/
        fun typePopView(datas: SubFilterBean.DataEntity)
        /*更多*/
        fun morePopView(datas: List<SubFilterBean.DataEntity>)
//        初始化drowview
        fun initDropView(data:SubFilterBean)
        fun initRecylerView(adapter: HomePageAdapter)
        fun initAdapterEmptyView(adapter: HomePageAdapter)
    }

    interface Model: IModel{
         fun loadFilter(type: String):Observable<SubFilterBean>
         fun loadHouses(groupId:String?=null,words: String,page: Int=1,areaid:String):Observable<BaseData<BaseListData<HomeBean>>>
    }
}